package com.train.mgr.modules.biz.dto.response;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class KeywordMatchResult {
    private final BigDecimal accuracyScore;   // 0~100，1 位小数
    private long audioDuration;//单位：毫秒
    private final List<String> hitList;       // 命中的关键词（按传入顺序，去重）
    private final List<String> missList;      // 未命中的关键词（按传入顺序，去重）

    public KeywordMatchResult(BigDecimal accuracyScore,
                              List<String> hitList,
                              List<String> missList) {
        this.accuracyScore = accuracyScore;
        this.hitList = hitList;
        this.missList = missList;
    }

}
